//
//  CollectionModelCell.m
//  BobNews
//
//  Created by lanou3g on 16/5/17.
//  Copyright © 2016年 liu. All rights reserved.
//

#import "CollectionModelCell.h"
#import "UIImageView+WebCache.h"
@interface CollectionModelCell ()
@property (weak, nonatomic) IBOutlet UIImageView *imgsrcView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *replyCount;

@end

@implementation CollectionModelCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)layoutSubviews {
    [self.imgsrcView sd_setImageWithURL:[NSURL URLWithString:self.model.imgsrc]];
    self.titleLabel.text = self.model.title;
    self.replyCount.text = [NSString stringWithFormat:@"%@跟帖",self.model.replyCount];
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
